home *** CD-ROM | disk | FTP | other *** search
- Path: unix.sri.com!usenet
- From: mklenk@updike.sri.com (Mark Klenk)
- Newsgroups: comp.lang.c
- Subject: Re: Pound defines
- Date: 16 Jan 1996 18:57:42 GMT
- Organization: SRI International
- Message-ID: <4dgsf6$qin@unix.sri.com>
- References: <4dgquf$fuq@bmerhc5e.bnr.ca>
- Reply-To: mklenk@updike.sri.com
- NNTP-Posting-Host: 204.75.161.40
-
- Jean Giblin wrote:
- >
- > I was wondering if anybody out there knows about a C command that prints the
- >the name of the define when given the number. Example:
- >
- > #define MAX 20
- >
- >when given 20 it will return max.
-
- There is no such "command." #define's happen at pre-processor
- time - once the replacement has been made, the compiler can't
- tell the number 20 from the replaced MAX.
-
- ---
-
- mklenk@coronacorp.com (Mark Klenk)
-
-
-
-